﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    @*<meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>*@
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <meta name="Description" content="Naraina Dental Centre">
    <meta name="google-site-verification" content="+nxGUDJ4QpAZ5l9Bsjdi102tLVC21AIh5d1Nl23908vVuFHs34=" />
    <title>@ViewBag.Title</title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link href="~/Content/jquery.dynatable.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" media="all" href="~/Content/bootstrap.min.css">
   @* <link rel="stylesheet" type="text/css" media="all" href="~/Content/bootstrap-amelia.min.css">*@
    <link href="~/Content/bootstrap-combobox.css" media="screen" rel="stylesheet" type="text/css">

    <!--link rel="stylesheet" type="text/css" media="all" href="css/bootstrap-responsive.min.css"-->
    <link rel="stylesheet" type="text/css" media="all" href="~/Content/global.css">
    <link href="~/Content/media-query.css" rel="stylesheet" />
    <script type="text/javascript" src="~/Scripts/jquery.js"></script>
    <link rel="stylesheet" href="~/Content/jquery-ui.css">
    <script src="~/Scripts/jquery-ui.js" type="text/javascript"></script>
    <script type="text/javascript" src="~/Scripts/bootstrap.min.js"></script>

    <script src="~/Scripts/jquery.dynatable.js"></script>
    <link href="~/Content/jquery.datetimepicker.css" rel="stylesheet" />
    <script src="~/Scripts/jquery.datetimepicker.js" type="text/javascript"></script>
  
    <link href="/Fonts/GoogleFonts.css" rel="stylesheet" />
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <script type="text/javascript" src="~/Scripts/lodash.min.js"></script>
  
    <script src="~/Scripts/date.js" type="text/javascript"></script>

<link href="~/Content/responsive-calendar.css" rel="stylesheet" />
</head>
<body>
      <header class="container">
        <div id="menu" class="container navbar navbar-default navbar-fixed-top">
            <div class="navbar-header col-lg-8 col-md-7 col-xs-12">
                <h4 id="ClinicName" class="col-lg-12 col-md-12 col-xs-10 clear-padding"> <a id="ClinicNumber" href="javascript:void(0)"><span class="glyphicon glyphicon-earphone" id="ClinicPhoneSpan"></span></a></h4>
                <button id="mobileMenu" class="btn btn-success navbar-toggle col-lg-2 col-md-2 col-xs-2 clear-margin" data-toggle="collapse" data-target=".navbar-collapse" style="color: #428bca;">
               <span class="glyphicon glyphicon-chevron-down"></span>
                </button>
            </div>
            <div class="navbar-collapse collapse col-md-5 col-xs-12 pull-right">
                <ul class="nav navbar-nav navbar-right navbar">
                    @{
                        HMS.DataContract.Response.UserInfo user = (HMS.DataContract.Response.UserInfo)Session["userInfo"];
                        if (user != null && user.Detail == "D")
                        {
                           <li class="nav"><a href="/Appointment/AppoinmentIndex">Appointments</a></li>
                           <li class="nav"><a href="/Patient/Index">Patients</a></li>
                            if (System.Configuration.ConfigurationManager.AppSettings[user.ClinicCode + "ReportEnabled"] == "yes")
                            {
                                <li class="nav"><a href="/Report">Reports</a></li>
                            }
                            <li class="nav"><a id="btnSignOut" href="javascript:void(0)">Sign out</a></li>
                        }
                        else if (user != null && user.Detail == "P")
                        {
                            <li class="nav"><a href="/Patient/Index">Home</a></li>
                            <li class="nav"><a id="btnSignOut" href="javascript:void(0)">Sign out</a></li>
                        }
                    }
                    @*<li class="nav"><a href="/">Patients</a></li>*@
                </ul>
            </div>
        </div>
    </header>
    @RenderBody()
    <footer class="container">
        <div class="well well-sm">
            <div class="row">
               @* <div class="col-md-6 col-sm-6 col-xs-6"><p class="text-muted text-left">Connect with  us at Facebook</p></div>*@
                <div class="col-md-6 col-sm-6 col-xs-6 pull-right"><p class="text-muted text-right">Powered by <a href="http://www.thoughtboat.com" target="_blank">Thoughtboat Inc.</a></p></div>
            </div>
        </div>
    </footer>
<script type="text/javascript" src="~/Scripts/jquery.tmpl.js"></script>    
    <script type="text/javascript" src="~/Scripts/index.js"></script>
    <script type="text/javascript" src="~/Scripts/common.js"></script>
    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)
    <script type="text/javascript">
    var environment = '@System.Configuration.ConfigurationManager.AppSettings["AppEnvironment"].ToLower()';
        var _AbsolutePath = "http://" + '@System.Web.HttpContext.Current.Request.Url.Authority' + "/";
    $(document).ready(function () {
        $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy', changeYear: true, changeMonth: true, yearRange: "-100:+0" });
            $("#btnSignOut").click(function () {
                location.href = _AbsolutePath + 'User/LogOut';
                //$.ajax({
                //    type: "POST",
                //    url: _AbsolutePath + 'User/LogOut',
                //    contentType: "application/json",
                //    data: null,
                //    caller: arguments.callee.name,//gets currently running function name
                //    dataType: "json", //Cross domain call (even json also work)
                //    success: function (res) {
                        
                //    },
                //    error: function (xhr) { debugger; }
                //});
            });
    });
    </script>
    
    
</body>
</html>
